<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <link href="<s:url value="/css/main.css"/>" rel="stylesheet" type="text/css"/>
	<title><s:text name="application.title"/></title>
</head>
<body>
	<s:actionerror/>
	<div class="titleDiv"><s:text name="application.title"/></div>
	<h1><s:text name="label.student.title"/> "<s:property value="student.nombre"/>" 
		<s:text name="label.student.title2"/> "<s:property value="subject.nombre"/>"</h1>
	<s:url action="loginAction!doLogout"  id="logout" escapeAmp="false">
	</s:url>
	<a href="<s:property value="#logout"/>"><s:text name="label.logout.button"/></a>
	<table class="borderAll">
		    <tr>
		        <th><s:text name="label.student.dni"/></th>
		        <th><s:text name="label.student.name"/></th>
		        <th><s:text name="label.student.phone"/></th>		        
		        <th>&nbsp;&nbsp;</th>
		    </tr>	    
	        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>"> 
	            <td class="nowrap"><s:property value="student.Dni"/></td>
	            <td class="nowrap"><s:property value="student.Nombre"/></td>
	            <td class="nowrap"><s:property value="student.Telefono"/></td>	            
	        </tr>			
	</table>

	<BR><BR>

	<table class="borderAll">
		    <tr>
		        <th><s:text name="label.lecturerSubject.code"/></th>
		        <th><s:text name="label.lecturerSubject.namesub"/></th>
		        <th><s:text name="label.lecturerSubject.credits"/></th>
		        <th><s:text name="label.lecturerSubject.teacher"/></th>
				<th><s:text name="label.lecturerSubject.noStudents"/></th>        		        
		        <th>&nbsp;&nbsp;</th>		    
		    </tr>
	        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		        <td class="nowrap"><s:property value="subject.Codigo"/></td>
	            <td class="nowrap"><s:property value="subject.Nombre"/></td>
	            <td class="nowrap"><s:property value="subject.Creditos"/></td>
	            <td class="nowrap"><s:property value="subject.Profesor.nombre"/></td>
	            <td class="nowrap"><s:property value="subject.Matriculacion.size"/></td>		            
	        </tr>
	</table>

	<BR><BR>

	<table class="borderAll">
		    <tr>
		        <th><s:text name="label.evaluacion.Id"/></th>
		        <th><s:text name="label.evaluacion.Concept"/></th>
		        <th><s:text name="label.evaluacion.Mark"/></th>		        
		        <th>&nbsp;&nbsp;</th>
		    </tr>
		    <s:iterator value="setOfMarks" status="status">
		        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		            <td class="nowrap"><s:property value="id"/></td>
		            <td class="nowrap"><s:property value="concepto"/></td>
		            <td class="nowrap"><s:property value="nota"/></td>		            
		        </tr>
			</s:iterator>
	</table>
	
	<BR>

	<s:form action="lecturerAction">
		<s:submit value="%{getText('label.button.cancel')}" align="center"/>		
	</s:form>
		
</body>
</html>
